package schoolWork.work04.test2;

public class ExceptionExample {
    public static void main(String[] args) {
        People people = new People();
        for (int i = 0; i < 128; i++) {
            try {
                people.printLetter((char) i);
            } catch (NoLowerLetter e) {
                e.print();
            }
        }
        for (int i = 0; i < 128; i++) {
            try {
                people.printDigit((char) i);
            } catch (NoDigit e) {
                e.print();
            }
        }
    }
}
